const fs = require("fs");

function read1(){
    return new Promise((resolve,reject)=>{
       fs.readFile("./测试.md",(err,data)=>{
           if(err) reject(err);
           resolve(data);
       });
    });
};
function read2(){
    return new Promise((resolve,reject)=>{
       fs.readFile("./测试2.md",(err,data)=>{
           if(err) reject(err);
           resolve(data);
       });
    });
};
function read3(){
    return new Promise((resolve,reject)=>{
       fs.readFile("./测试3.md",(err,data)=>{
           if(err) reject(err);
           resolve(data);
       });
    });
};

async function main(){
    try{
    let r1 = await read1();
    let r2 = await read2();
    let r3 = await read3();
    console.log(r1.toString());
    console.log(r2.toString());
    console.log(r3.toString());
    }catch(e){
        console.log(e);
        console.log("出现错误");
    }
    
};

main();